home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13301 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: howland.reston.ans.net!psinntp!psinntp!psinntp!psinntp!usenet
  2. From: grantp@usa.pipeline.com
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: ERROR, Please HELP me
  5. Date: 24 Mar 1996 20:28:06 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4j4b8m$fj0@news1.h1.usa.pipeline.com>
  8. References: <31558C94.44B1@prometheus.hol.gr>
  9. NNTP-Posting-Host: 38.8.61.12
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete Grant)
  13. X-Newsreader: Pipeline v3.5.0
  14.  
  15. On Mar 24, 1996 19:55:32 in article <ERROR, Please HELP me>, 'john
  16. <vjohn@prometheus.hol.gr>' wrote: 
  17.  
  18.  
  19. >I have this class ... 
  20. >Class MyDialog : TDialog 
  21. >{ 
  22. >public : 
  23. >MyDialog(TWindows* aParent) :: TDialog(aParend, "MyDialog_RC") 
  24. >{ 
  25. >} 
  26. >} 
  27. >and I call MyDialog class ... 
  28. >(new MyDialog(this))->Execute());  
  29. >Is correct ????? 
  30. >When BC++ is loaded no error occurs. 
  31. >I close BC++(4.5), I run the program and get the bellow error  
  32. >when call MyDialog Dialog 
  33. >    +---------------------------+ 
  34. >    | Object Windows Exception  | 
  35. >    +---------------------------+ 
  36. >    | Execute Fail for window   | 
  37. >    |  Ok to resume ?           | 
  38. >    |                           | 
  39. >    |       YES   NO            | 
  40. >    +---------------------------+ 
  41.  
  42. Snipped from the FAQ: 
  43.  
  44. ============================================================================== 
  45.  
  46. Q147: Why does my BC++ Windows app crash when I'm not running the BC45 IDE?
  47.  
  48.  
  49. If you're using BC++ for a Windows app, and it works ok as long as you have
  50. the 
  51. BC45 IDE running, but when the BC45 IDE is shut down you get an exception 
  52. during the creation of a window, then add the following line of code to the
  53.  
  54. InitMainWindow() method of your application ("YourApp::InitMainWindow()"): 
  55.  
  56.     EnableBWCC(TRUE); 
  57.  
  58. ============================================================================== 
  59.  
  60.  
  61. -- 
  62. Pete Grant 
  63. Kalevi, Inc. 
  64. Software Engineering & development
  65.